<%@ page import="main.www.wonderfuldata.com.StatementTest" %>
<%@ page import="main.www.wonderfuldata.PreparedStatement.PreparedStatementTest" %>
<%@ page import="main.www.wonderfuldata.bean.bookInfo" %><%--
  Created by IntelliJ IDEA.
  User: gby0564
  Date: 2022/4/27
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除图书信息</title>
</head>
<body>

    <%
        String bookId =  request.getParameter("id");

        PreparedStatementTest ps = new PreparedStatementTest();
        String sql = "DELETE FROM bookInfo WHERE (bookId=?)";
        ps.update(sql,bookId);
        response.setHeader("Refresh","0;url=selectUserInfo.jsp");



    %>

</body>
</html>
